package com.ai.entity.security.page;

import com.ai.entity.security.SysRequestPath;
import com.ai.entity.comm.page.SysBasePage;
import com.alibaba.druid.util.StringUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;


@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SysRequestPathPage extends SysBasePage<SysRequestPath> {

    @ApiModelProperty("请求路径")
    private String url;

    @ApiModelProperty("路径描述")
    private String description;


    public QueryWrapper<SysRequestPath> getQuery(QueryWrapper<SysRequestPath> queryWrapper) {
        return super.getQuery(queryWrapper)
                .like(!StringUtils.isEmpty(url),"url",url)
                .like(!(StringUtils.isEmpty(description)),"description",description);
    }







}
